package com.yang.designmode.ActionMode.template;
// 具体类 ChessGame
public class ChessGame extends GameTemplate {
    @Override
    protected void initialize() {
        System.out.println("Chess game initialized.");
    }

    @Override
    protected void startGame() {
        System.out.println("Chess match started.");
    }

    @Override
    protected void endGame() {
        System.out.println("Chess game ended with checkmate.");
    }
}